#pragma once
#include "resource.h"

// CGridSetting dialog

struct sGridAttrib
{
	int		 gridWidth;
	int		 lineStyle;
	bool	 showTop;
	COLORREF color;
	sGridAttrib( int p_w, int p_s, bool p_t, COLORREF p_c)
	{
		gridWidth = p_w;
		lineStyle = p_s;
		showTop	  = p_t;
		color	  = p_c;
	}
};

class CGridSettingDlg : public CDialog
{
	DECLARE_DYNAMIC(CGridSettingDlg)

public:
	CGridSettingDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CGridSettingDlg();
	
	inline	sGridAttrib	getGridAttrib();
// Dialog Data
	enum { IDD = IDD_DIALOG1 };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	int m_gridWidth;
	afx_msg void OnBnClickedGridColorsetting();
	int m_lineStyle;
	COLORREF m_color;
	bool m_showTop;
};

sGridAttrib CGridSettingDlg::getGridAttrib()
{
	return sGridAttrib( m_gridWidth, m_lineStyle, m_showTop, m_color );
}